package cn.cloud9.designpattern.dp08flyweight.ticket;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 13:48
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        ITicket iTicket = TicketFactory.queryTicket("北京西", "长沙");
        iTicket.showInfo("硬卧");
        iTicket = TicketFactory.queryTicket("上海虹桥站", "南昌西");
        iTicket.showInfo("软卧");

    }
}
